<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户管理-增加</title>
    <link href="../../../static/css/layout.css" rel="stylesheet" type="text/css" />
    <link href="../../../static/css/cb.css" rel="stylesheet" type="text/css" />
    <link href="../../../static/css/n.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css"
          href="../../../static/easyui/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/easyui/themes/icon.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/easyui/demo/demo.css" />
    <link rel="stylesheet" type="text/css"
          href="../../../static/js/laypage/skin/laypage.css" />
    <script type="text/javascript" src="../../../static/easyui/jquery.min.js"></script>
    <script src="../../../static/js/vue/vue.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../../static/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../static/js/laypage/laypage.js"></script>
    <script type="text/javascript" src="../../../static/laydate/laydate.js"></script>
</head>
<body>
<script>

    function updatePass(){
        alert($("#user_pass").val());
        var passWord=$("#user_pass").val();
        $.ajax({
            url : "/sysuser/updPassword",
            data : {
                "passWord" : passWord
            },
            type : "get",
            datatype : "json",
            success : function(result) {
                $.messager.alert({
                    title : '消息',
                    msg : result.message,
                    icon : 'info'
                });
            }
        });
    }

</script>

<!-- 增加违规违纪记录弹出框 -->
<table width="500px" height="300px" border="0" align="center"
       cellpadding="3" cellspacing="1" bgcolor="#AEDEF4">
    <tr>
        <td align="center" bgcolor="#E2F7FE">
            <form id="form1" name="form1">
                <table width="80%" border="0" cellspacing="1" cellpadding="3">
                    <tr style="height: 30px">
                        <td width="25%" align="center" style="font-size: 12px"><strong>用户名:</strong></td>
                        <td width="25%" align="left">
                            <input type="text" name="username_detail" id="username_detail" value="${userObject.user.username}" style="width: 160px; height: 20px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="center" style="font-size: 12px"><strong>姓名:</strong></td>
                        <td width="25%" align="left">
                            <input type="text" name="realname_detail" id="realname_detail" value="${userObject.user.realname}" style="width: 160px; height: 20px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="center" style="font-size: 12px"><strong>所属单位:</strong></td>
                        <td width="25%" align="left">
                            <input type="text" name="dept_detail" id="dept_detail" value="${userObject.dept.name}" style="width: 160px; height: 20px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="center" style="font-size: 12px"><strong>用户状态：</strong></td>
                        <td width="25%" align="left">
                            <input type="text" name="status_detail" id="status_detail"
                            <#if userObject.user.status=0 >
                                   value="禁用"
                            <#else>
                                   value="启用"
                            </#if>
                                   style="width: 160px; height: 20px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="center" style="font-size: 12px"><strong>职位：</strong></td>
                        <td width="25%" align="left">
                            <input type="text" name="position_detail" id="position_detail" value="${userObject.user.position}" style="width: 160px; height: 20px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="center" style="font-size: 12px"><strong>用户角色:</strong></td>
                        <td width="25%" align="left">
                            <input type="text" name="role_detail" id="role_detail" value="${userObject.userrole.roleName}" style="width: 160px; height: 20px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" align="center" style="font-size: 12px"><strong>用户密码:</strong></td>
                        <td width="25%" align="left">
                            <input type="text" name="role_detail" id="user_pass" value="${userObject.user.password}" style="width: 160px; height: 20px"/>
                            <input type="button" onclick="updatePass()" value="该"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><input type="hidden" id=user_id value="${userObject.user.id}"/></td>
                    </tr>
                </table>
            </form>
        </td>
    </tr>
</table>
</body>
</html>